package semana2.bucles.ejercicio13_numDigitos;

import java.util.Scanner;

public class NumeroDigitos {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		System.out.println("Introduce n: ");
		int n = scan.nextInt();

		int numDigitos = 0;
		while (n > 0) {
			n = n / 10;
			numDigitos++;
		}
		System.out.println("Numero de digitos totales: " + numDigitos);
	}

}
